--[[ 编码: JX-24-10 名称: 出库单领用-初始化 作者:HAN 日期:2025-1-29 级别:项目 函数: InitialDlg 功能: -- 设置登录人员姓名 更改记录: --]] wms_base = require( "wms_base" ) function InitialDlg ( strLuaDEID ) local nRet, strRetInfo -- 获取当前登录人员账号名称及PC绑定的站台 local login_info nRet, login_info = wms_base.Get_CurLoginUserInfo( strLuaDEID ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), login_info ) end local station_enable = true if ( login_info.station ~= '' ) then station_enable = false end local action = { { action_type = "set_dlg_attr", value = { { attr = "S_STATION_NO", value = login_info.station, enable = station_enable }, { attr = "Login", value = login_info.user_name, enable = false } } } } nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end end